import request from "@/utils/request";

export function robotInspectionLog(id) {
  return request({
    url: "/robot-inspection-log/v1/" + id,
    method: "get",
  });
}

export const thresholdConfig = {
  create(data) {
    return request({
      url: "/system-configuration/v1",
      method: "post",
      data,
    });
  },
  read(params) {
    return request({
      url: "/system-configuration/v1",
      method: "get",
      params,
    });
  },
  update(data) {
    return request({
      url: "/system-configuration/v1",
      method: "put",
      data,
    });
  },
  delete(id) {
    return request({
      url: "/system-configuration/v1/" + id,
      method: "delete",
    });
  },
};
